package com.us.usws.biz;

public class VideoRateStartWorker {

	/**
	 * get rate star worker
	 * @param playCnt
	 * @return
	 */
	public static byte getRateStar(int playCnt) {
		byte ret;
		if (playCnt >= 80) {
			ret = 5;
		} else if (playCnt >= 60) {
			ret = 4;
		} else if (playCnt >= 40) {
			ret = 3;
		} else if (playCnt >= 20) {
			ret = 2;
		} else if (playCnt >= 10) {
			ret = 1;
		} else {
			ret = 0;
		}
		return ret;
	}
}
